package com.itheima.service.impl;

import com.itheima.mapper.AreaMapper;
import com.itheima.pojo.Area;
import com.itheima.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AreaServiceImpl implements AreaService {

    @Autowired
    private AreaMapper areaMapper;

    /**
     * 查询所有城市
     * @return
     */
    @Override
    public List<Area> findAll() {
        List<Area> allArea = areaMapper.findAll();
        return allArea;
    }
}
